package org.example.sunrise;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.example.sunrise.core.ViewEnum;

import java.io.IOException;

public class Sunrise extends Application {
    @Override
    public void start(Stage stage) throws IOException {
        SimpleSunriseFactory factory = new SimpleSunriseFactory(stage);
        stage.setScene(new Scene(factory.getView(ViewEnum.MAIN), factory.getCtx().width(), factory.getCtx().height()));
        stage.setTitle(factory.getCtx().name());
        stage.setResizable(false);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
